// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * 待办事项来源类型枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023-02-02
 */
public enum MatterSourceEnum {
    CHIMI_CARD(1, "CHIMI发帖"),
    CHIMI_COMMENT(2, "CHIMI评论"),
    QUESTION(3, "问题管理"),
    INVENTORY(4, "库存管理"),
    EXPERT(5, "专家模块"),
    PATENT_TRENDS(6, "专利动态"),
    PATENT_PROJECT_INVESTIGATION(7, "项目风险专利排查"),
    PATENT_RISK_ANALYSIS(8, "新品专利风险分析"),
    PATENT_RISK(9, "专利风险管控"),
    PROJECT_MANAGE(10, "项目管理");

    private int value;

    private String name;

    MatterSourceEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        MatterSourceEnum arrObj[] = MatterSourceEnum.values();
        for (MatterSourceEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }

}
